

/*



     +---+--+---+            +---+---*---+
/1OE |1  +--+ 16| VCC        |/OE| A |/Y |
 1A1 |2       15| /2OE       +===+===*===+
/1Y1 |3       14| 2A2        | 1 | X | Z |
 1A2 |4   74  13| /2Y2       | 0 | 0 | 1 |
/1Y2 |5  368  12| 2A1        | 0 | 1 | 0 |
 1A3 |6       11| /2Y1       +---+---*---+
/1Y3 |7       10| 1A4
 GND |8        9| /1Y4
     +----------+
 */



var module = {
    
name: "74LS368",
    
description: "Logic inverter",
    
pins : [
    [ 1, '/1OE'	],
    [ 2, '1A1'	],
    [ 3, '/1Y1'	],
    [ 4, '1A2'	],
    [ 5, '/1Y2'	],
    [ 6, '1A3'	],
    [ 7, '/1Y3'	],
    [ 8, 'vss'	],

    [16, 'vcc'    ],
    [15, '/2OE'   ],
    [14, '2A2'    ],
    [13, '/2Y2'   ],
    [12, '2A1'    ],
    [11, '/2Y1'   ],
    [10, '1A4'   ],
    [ 9, '/1Y4'  ],
],

nodenames :
{

    /*
          +---+--+---+            +---+---*---+
    /1OE |1  +--+ 16| VCC        |/OE| A |/Y |
     1A1 |2       15| /2OE       +===+===*===+
    /1Y1 |3       14| 2A2        | 1 | X | Z |
     1A2 |4   74  13| /2Y2       | 0 | 0 | 1 |
    /1Y2 |5  368  12| 2A1        | 0 | 1 | 0 |
     1A3 |6       11| /2Y1       +---+---*---+
    /1Y3 |7       10| 1A4
     GND |8        9| /1Y4
         +----------+
     */


    vcc: 1,
    vss: 2,


    '/1OE': 100,

     '1A1': 110,
    '/1Y1': 111,
    '/1A1': 112,
    
     '1A2':  120,
    '/1Y2':  121,
    '/1A2':  122,
    
     '1A3':  130,
    '/1Y3':  131,
    '/1A3':  132,

     '1A4':  140,
    '/1Y4':  141,
    '/1A4':  142,


    '/2OE': 200,
     '2A1': 210,
    '/2Y1': 211,
    '/2A1': 212,

     '2A2': 220,
    '/2Y2': 221,
    '/2A2': 222,

    '1OE': 101,
    '2OE': 201,

},

transdefs:
[
    ['t','/1OE',         '1OE',          2               ],
    ['t','/2OE',         '2OE',          2               ],

    ['t','1A1',          '/1A1',         2               ],
    ['t','1OE',          '/1A1',         '/1Y1'          ],

    ['t','1A2',          '/1A2',         2               ],
    ['t','1OE',          '/1A2',         '/1Y2'          ],

    ['t','1A3',          '/1A3',         2               ],
    ['t','1OE',          '/1A3',         '/1Y3'          ],

    ['t','1A4',          '/1A4',         2               ],
    ['t','1OE',          '/1A4',         '/1Y4'          ],

    ['t','2A1',          '/2A1',         2               ],
    ['t','2OE',          '/2A1',         '/2Y1'          ],

    ['t','2A2',          '/2A2',         2               ],
    ['t','2OE',          '/2A2',         '/2Y2'          ],
],
    
segdefs: [
    ['1OE'           , '+', 0],
    ['2OE'           , '+', 0],
    ['/1A1'          , '+', 0],
    ['/1A2'          , '+', 0],
    ['/1A3'          , '+', 0],
    ['/1A4'          , '+', 0],
    ['/2A1'          , '+', 0],
    ['/2A2'          , '+', 0],
]

    

};
